const cors = require('@koa/cors');

module.exports = app => {
  app.use(cors({
    origin: '*',
    allowMethods: ['GET', 'POST', 'PUT', 'DELETE'],
    exposeHeaders: ['Authorization'],
    maxAge: 3600
  }))
}